package org.xx.armory.jpa;

import org.xx.armory.domain.Book;

import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface BookProvider {
    Optional<Book> save(
            Book book
    );

    List<Book> findAll(
            String title,
            String author,
            Date startDate,
            Date endDate,
            int startRowIndex,
            int maximumRows
    );

    int count(
            String title,
            String author,
            Date startDate,
            Date endDate
    );
}
